package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.transaction.annotation.Transactional;

@SpringBootApplication
@EnableTransactionManagement
@MapperScan("com.example.demo.mapper")
public class SpringBootMarkApplication  implements CommandLineRunner{

	public static void main(String[] args) {
		SpringApplication.run(SpringBootMarkApplication.class, args);
	}

	@Override
    @Transactional
    public void run(String... args) throws Exception {
        System.out.println("-- Server start --");

    }
}
